<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="Cache-Control" content="No-Cache">
	<meta http-equiv="Pragma" content="No-Cache">

	<title>운세의 신</title>

	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			$('#frm').submit(function() {
				var popup = window.open("", "payment", "left=0,top=0,width=516,height=460,scrollbars=no");
				popup.focus();
			});
		});
	</script>
</head>
<body>
<!-- Header -->
<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/header.php'; ?>
<!--// Header -->

<!-- Contents -->
<div>
	<h2>상품 결제</h2>
</div>
<div>
	<form method="post" id="frm" action="/payment/payletter" target="payment">
		<h3>선택 상품</h3>
		<table border="1" cellpadding="2" cellspacing="0">
			<tr>
				<td>정액/캐쉬 구분</td>
				<td>idx</td>
				<td>상품</td>
				<td>가격(부가세포함)</td>
			</tr>
			<tr>
				<td><?=$choice_item['p_type_name']?><input type="text" name="p_type" id="p_type" value="<?=$choice_item['p_type']?>" /></td>
<?	if ($choice_item['p_type'] == 'package') : ?>
				<td><input type="text" name="package_cd" id="package_cd" value="<?=$choice_item['package_cd'];?>" /></td>
				<td><?=$choice_item['package_name'];?></td>
<?	elseif ($choice_item['p_type'] == 'cash') : ?>
				<td><input type="text" name="idx" id="idx" value="<?=$choice_item['idx'];?>" /></td>
				<td><?=$choice_item['cash_name'];?></td>
<?	endif ?>
				<td><?=number_format($choice_item['price']);?></td>
			</tr>
		</table>

		<h3>결제 수단 선택</h3>
		<table border="1" cellpadding="2" cellspacing="0">
			<tr>
				<td>
					<input type="radio" name="pgcode" id="pgcode_1" value="15" />
					<label for="pgcode_1">신용카드(LG데이콤)</label>
					<br>
					<input type="radio" name="pgcode" id="pgcode_16" value="16" />
					<label for="pgcode_16">가상계좌(LG데이콤)</label>
				</td>
			</tr>
		</table>
		
		<input type="submit" value="결제" />
	</form>
</div>
<!--// Contents -->

<!-- Footer -->
<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/footer.php'; ?>
<!--// Footer -->
</body>
</html>